package cn.hxzy.office.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (News)实体类
 *
 * @author makejava
 * @since 2020-07-29 11:12:31
 */
public class News implements Serializable {
    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", user=" + user +
                ", createTime=" + createTime +
                '}';
    }

    public News() {
    }

    private static final long serialVersionUID = 963832043079625195L;

    private Integer id;

    private String title;

    private String content;

    private User user;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}